#include "StdAfx.h"
#include "Patch.h"
#include "PropSysHook.h"
#include "WMPHook.h"

#pragma unmanaged

void* SelectPropSysMethod(int num) {
	void* proc = propsysHook[num];
	if (!proc) {
		proc = propsysSave[num];
	}
	return proc;
}

HRESULT WINAPI PSLookupPropertyHandlerCLSIDHook(PCWSTR pszFilePath, CLSID *pclsid) {
	SyncFuncHook(HRESULT, PPSLookupPropertyHandlerCLSID, SelectPropSysMethod(0), (pszFilePath, pclsid));
}
